#include <QObject>
#include "CmdUtil.h"
#include "MainWindow.h"

class MysqlCheckWorker : public QObject {
    Q_OBJECT
public:
    MysqlCheckWorker() {

    }
signals:
    void finish(bool flag);
private slots:
    void onTimeout() {
        // qDebug() << "onTimeout MysqlCheckWorker";
        bool flag = CmdUtil::isPortListening(MainWindow::mysqlPort);
        emit finish(flag);
    }
};
